Skip to content

Conversation

@Beerosagos
Copy link
Collaborator

@Beerosagos Beerosagos commented Nov 25, 2025

The colors of both the status and the navigation bars and their icons
were not always matching the app background.

Also, forcing the app theme in the settings and then switching the OS
theme was sometime causing the bar icons to change and blend with the
bars.

This commit does the following:

  • Drives the colors of both bars and icons in the setDarkTheme method
    to avoid misalignemnts with the app theme
  • Removes the onConfigurationChanged overriding, which was conficting
    with the implemented theme handling, which is delegated to the frontend
    DarkmodeProvider. Listening of OS theme changes in the activity must be
    avoided as it could fire unwanted changes in the app theme.
  • Improve the app static styles, to reduce the color flickering before
    setDarkTheme() is called for the first time.
  • Apply matching backgrounds to the root layout and WebView so the bars
    blend with the app in both light and dark modes.

Also fixes navigation bar overlap.

@Beerosagos
Copy link
Collaborator Author

Tested on Android 7,8,13,15,16

Copy link
Contributor

@benma benma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK on Android 16, very nice!

left two comments

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why in the v23 folder (we support v24+ only anyway)? Couldn't it simply be in res/values/styles.xml?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's v23 because some of the attributes are supported from v23+. But yeah, since our minSdk is 24 we could also collapse everything inside values/values-night folders.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

- Sort backups from newest to oldest in manage backups
- Android: fix display of external links from Bitrefill
- fix language sometimes not persistent across app restarts
- Android: fix layout issues with status and navigation bars.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

" ... on Android 15+"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were issues also in previous versions

benma's agent and others added 2 commits December 2, 2025 09:41
Android 15 (API 35) enforces edge-to-edge display by default, causing
the app to draw behind the system navigation bar. This commit adds to
the root layout to prevent the app content from overlapping with the
system navigation bar.
The colors of both the status and the navigation bars and their icons
were not always matching the app background.

Also, forcing the app theme in the settings and then switching the OS
theme was sometime causing the bar icons to change and blend with the
bars.

This commit does the following:
- Drives the colors of both bars and icons in the setDarkTheme method
to avoid misalignemnts with the app theme
- Removes the onConfigurationChanged overriding, which was conficting
with the implemented theme handling, which is delegated to the frontend
DarkmodeProvider. Listening of OS theme changes in the activity must be
avoided as it could fire unwanted changes in the app theme.
- Improve the app static styles, to reduce the color flickering before
setDarkTheme() is called for the first time.
- Apply matching backgrounds to the root layout and WebView so the bars
blend with the app in both light and dark modes.
@Beerosagos Beerosagos merged commit 22f2ba4 into BitBoxSwiss:master Dec 2, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants